package be.webchess.www.actions;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpSession;


public class SDecoAction extends BaseAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3634287588158211798L;

	
	
	public String execute (){
		
		
		HttpSession session = request.getSession();
		session.removeAttribute("loggedUser");
		String red = "/WebChess/home";
		try {
			response.sendRedirect(red);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		
		
		return SUCCESS;
	}
	
	
	
	@Override
	public String getTitle() {
		// TODO Auto-generated method stub
		return "Deco";
	}

	@Override
	public String getContent() {
		// TODO Auto-generated method stub
		
		return "";
	}

	@Override
	public String getErrorTitle() {
		// TODO Auto-generated method stub
		return "DECO ERROR";
	}



	@Override
	public String getHeadExtra() {
		// TODO Auto-generated method stub
		return "";
	}

}
